﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Acme.BookStore.Goodss
{
    public class CreateUpdateGoodsDto
    {
        [Required]
        [StringLength(128)]
        public string productName { get; set; } //产品名称
        [Required]
        [StringLength(128)]
        public string productSubtitle { get; set; } //产品副标题
        [Required]
        public int productDisplay { get; set; }     //产品是否显示
        [Required]
        public decimal productSalePrice { get; set; } //产品原价
        [Required]
        public decimal productSPromotion { get; set; } //产品销售价[Required]
        [Required]
        public string productDetails { get; set; } //产品介绍（富文本）
        [Required]
        public decimal productWeight { get; set; } //产品重量（KG）
        [Required]
        public int productState { get; set; } //产品是否上架
        [Required]
        public int productAttrName { get; set; } //产品属性
        [Required]
        public int productTypeId { get; set; } //产品分类
        [Required]
        public int productSpeciId { get; set; } //产品规范
    }
}
